<html>
<body>
<p>Reports <code>collection.map(f).flatten(m)</code> and suggests replacing it with <code>collection.flatMap</code>.</p>
<p><b>Example:</b></p>
<pre><code>
  Seq(1, 10).map(i => Seq(i, i + 10)).flatten
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  Seq(1, 10).flatMap(i => Seq(i, i + 10))
</code></pre>
<!-- tooltip end -->
</body>
</html>